<template>
  <div class="home">
    <Count :num.sync="num" @add="handleAdd"></Count>
  </div>
</template>

<script>
import Count from '../components/Count'
export default {
  name: 'Home',
  data() {
    return {
      num:2
    }
  },
  components:{
    Count
  },
  methods: {
    handleAdd(){
      this.num++
    }
  },
}
</script>
